#include <iostream>
#include <string>
#ifndef DATE_H
#define DATE_H
using namespace std;

class Date {
    public :
        //Constructeur
        Date(int jour,int mois, int annee) throw (int);
        Date();
        Date (Date const& d);

        Date lendemain() const;
        int getDay() const;
        int getMonth() const;
        int getYear() const;
        string getDate() const;

    private :
        int j_;
        int m_;
        int a_;
        static bool isBisextile(int a);
        static int nbjours(int mois, int annee);
                      
};

ostream& operator<<( ostream& os, const Date& d);
int operator==( const Date& d1, const Date& d2 );

#endif